package com.lagou.edu.code.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author liangzj
 * @date 2021/6/24 23:42
 */
@FeignClient("lagou-service-email")
public interface EmailClient {

    @RequestMapping(value = "/email/{email}/{code}", method = RequestMethod.GET)
    boolean email(@PathVariable String email, @PathVariable String code);
}
